<!--插件列表-->
<template>
  <div class="img_box">
    <div class="lt_img">
      <img src="@/assets/image/banner/wangzuxian.jpg" />
    </div>
    <div class="rt_cont">
      <div class="tt">
        <h5>标题</h5>
        <span class="time">2020-10-08</span>
      </div>
      <p class="sub">这是一个时间的插件</p>
      <div class="group">
        <el-button size="mini" type="primary" plain>预览</el-button>
        <el-button size="mini" type="warning" plain>下载</el-button>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {};
  },
  methods: {},
};
</script>
<style lang="scss" scoped>
.img_box {
  background-color: #fff;
  display: flex;
  flex-direction: row;
  border-bottom: 1px solid #e1e1e1;
  padding: 20px 15px 10px;
  transform: translateY(0);
  transition: box-shadow, transform 300ms ease-in-out;
  .lt_img {
    width: 80px;
    height: 80px;
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
  .rt_cont {
    flex: 1;
    padding: 10px 15px;
    .tt {
      .time {
        float: right;
        color: #898989;
        font-size: 14px;
        margin-top: 8px;
      }
      h5 {
        font-size: 16px;
        display: inline-block;
        line-height: 32px;
      }
    }
    .sub {
      font-size: 14px;
      color: #555;
      line-height: 22px;
    }
    .group {
      text-align: right;
    }
  }
  &:hover {
    box-shadow: 0 0 50px 10px #ccc;
    transform: translateY(-10px);
  }
}
</style>